package ace.cmp.spring.data.jdbc.querydsl.autoconfig;

import ace.cmp.spring.data.jdbc.querydsl.core.QuerydslRelationHelper;
import ace.cmp.spring.data.jdbc.querydsl.core.util.DeleteFlagUtils;
import jakarta.annotation.PostConstruct;
import jakarta.annotation.Resource;
import org.springframework.context.annotation.Configuration;

/**
 * @author caspar
 * @date 2023/4/3 15:59
 */
@Configuration
public class StaticHelperAutoConfig {
  @Resource private QuerydslRelationHelper querydslRelationHelper;

  @PostConstruct
  public void construct() {
    DeleteFlagUtils.setQuerydslRelationHelper(querydslRelationHelper);
  }
}
